import request from '@/utils/request'

// 查询挂号收费列表
export function listDepartment(query) {
  return request({
    url: '/his/department/list',
    method: 'get',
    params: query
  })
}

// 查询挂号收费详细
export function getDepartment(id) {
  return request({
    url: '/his/department/' + id,
    method: 'get'
  })
}



export function selectDoctorByDepartment(id) {
  return request({
    url: '/his/department/selectDoctorByDepartment/' + id,
    method: 'get'
  })
}




// 挂号收费
export function gh(data) {
  return request({
    url: '/his/department/gh',
    method: 'post',
    data: data
  })
}


// 新增挂号收费
export function addDepartment(data) {
  return request({
    url: '/his/department',
    method: 'post',
    data: data
  })
}

// 修改挂号收费
export function updateDepartment(data) {
  return request({
    url: '/his/department',
    method: 'put',
    data: data
  })
}

// 删除挂号收费
export function delDepartment(id) {
  return request({
    url: '/his/department/' + id,
    method: 'delete'
  })
}

// 导出挂号收费
export function exportDepartment(query) {
  return request({
    url: '/his/department/export',
    method: 'get',
    params: query
  })
}
